/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.taobao.ibatiside.model.mapperv3.impl;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;

import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

import org.taobao.ibatiside.model.mapperv3.Association;
import org.taobao.ibatiside.model.mapperv3.Collection;
import org.taobao.ibatiside.model.mapperv3.Constructor;
import org.taobao.ibatiside.model.mapperv3.Discriminator;
import org.taobao.ibatiside.model.mapperv3.Id;
import org.taobao.ibatiside.model.mapperv3.Mapperv3Package;
import org.taobao.ibatiside.model.mapperv3.Result;
import org.taobao.ibatiside.model.mapperv3.ResultMap;
import org.taobao.ibatiside.model.mapperv3.Select;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Association</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getConstructor <em>Constructor</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getIdx <em>Idx</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getResult <em>Result</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getAssociation <em>Association</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getCollection <em>Collection</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getDiscriminator <em>Discriminator</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getColumn <em>Column</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getColumnPrefix <em>Column Prefix</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getJavaType <em>Java Type</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getJdbcType <em>Jdbc Type</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getNotNullColumn <em>Not Null Column</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getProperty <em>Property</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getResultMap <em>Result Map</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getSelect <em>Select</em>}</li>
 *   <li>{@link org.taobao.ibatiside.model.mapperv3.impl.AssociationImpl#getTypeHandler <em>Type Handler</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class AssociationImpl extends EObjectImpl implements Association {
	/**
	 * The cached value of the '{@link #getConstructor() <em>Constructor</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getConstructor()
	 * @generated
	 * @ordered
	 */
	protected Constructor constructor;

	/**
	 * The cached value of the '{@link #getIdx() <em>Idx</em>}' containment reference list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getIdx()
	 * @generated
	 * @ordered
	 */
	protected EList<Id> idx;

	/**
	 * The cached value of the '{@link #getResult() <em>Result</em>}' containment reference list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getResult()
	 * @generated
	 * @ordered
	 */
	protected EList<Result> result;

	/**
	 * The cached value of the '{@link #getAssociation() <em>Association</em>}' containment reference list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getAssociation()
	 * @generated
	 * @ordered
	 */
	protected EList<Association> association;

	/**
	 * The cached value of the '{@link #getCollection() <em>Collection</em>}' containment reference list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getCollection()
	 * @generated
	 * @ordered
	 */
	protected EList<Collection> collection;

	/**
	 * The cached value of the '{@link #getDiscriminator() <em>Discriminator</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getDiscriminator()
	 * @generated
	 * @ordered
	 */
	protected Discriminator discriminator;

	/**
	 * The default value of the '{@link #getColumn() <em>Column</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getColumn()
	 * @generated
	 * @ordered
	 */
	protected static final String COLUMN_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getColumn() <em>Column</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getColumn()
	 * @generated
	 * @ordered
	 */
	protected String column = COLUMN_EDEFAULT;

	/**
	 * The default value of the '{@link #getColumnPrefix() <em>Column Prefix</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getColumnPrefix()
	 * @generated
	 * @ordered
	 */
	protected static final String COLUMN_PREFIX_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getColumnPrefix() <em>Column Prefix</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getColumnPrefix()
	 * @generated
	 * @ordered
	 */
	protected String columnPrefix = COLUMN_PREFIX_EDEFAULT;

	/**
	 * The default value of the '{@link #getJavaType() <em>Java Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getJavaType()
	 * @generated
	 * @ordered
	 */
	protected static final String JAVA_TYPE_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getJavaType() <em>Java Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getJavaType()
	 * @generated
	 * @ordered
	 */
	protected String javaType = JAVA_TYPE_EDEFAULT;

	/**
	 * The default value of the '{@link #getJdbcType() <em>Jdbc Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getJdbcType()
	 * @generated
	 * @ordered
	 */
	protected static final String JDBC_TYPE_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getJdbcType() <em>Jdbc Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getJdbcType()
	 * @generated
	 * @ordered
	 */
	protected String jdbcType = JDBC_TYPE_EDEFAULT;

	/**
	 * The default value of the '{@link #getNotNullColumn() <em>Not Null Column</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getNotNullColumn()
	 * @generated
	 * @ordered
	 */
	protected static final String NOT_NULL_COLUMN_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getNotNullColumn() <em>Not Null Column</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getNotNullColumn()
	 * @generated
	 * @ordered
	 */
	protected String notNullColumn = NOT_NULL_COLUMN_EDEFAULT;

	/**
	 * The default value of the '{@link #getProperty() <em>Property</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getProperty()
	 * @generated
	 * @ordered
	 */
	protected static final String PROPERTY_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getProperty() <em>Property</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getProperty()
	 * @generated
	 * @ordered
	 */
	protected String property = PROPERTY_EDEFAULT;

	/**
	 * The cached value of the '{@link #getResultMap() <em>Result Map</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getResultMap()
	 * @generated
	 * @ordered
	 */
	protected ResultMap resultMap;

	/**
	 * The cached value of the '{@link #getSelect() <em>Select</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSelect()
	 * @generated
	 * @ordered
	 */
	protected Select select;

	/**
	 * The default value of the '{@link #getTypeHandler() <em>Type Handler</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getTypeHandler()
	 * @generated
	 * @ordered
	 */
	protected static final String TYPE_HANDLER_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getTypeHandler() <em>Type Handler</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getTypeHandler()
	 * @generated
	 * @ordered
	 */
	protected String typeHandler = TYPE_HANDLER_EDEFAULT;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected AssociationImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return Mapperv3Package.Literals.ASSOCIATION;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Constructor getConstructor() {
		return constructor;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetConstructor(Constructor newConstructor, NotificationChain msgs) {
		Constructor oldConstructor = constructor;
		constructor = newConstructor;
		if (eNotificationRequired()) {
			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__CONSTRUCTOR, oldConstructor, newConstructor);
			if (msgs == null) msgs = notification; else msgs.add(notification);
		}
		return msgs;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setConstructor(Constructor newConstructor) {
		if (newConstructor != constructor) {
			NotificationChain msgs = null;
			if (constructor != null)
				msgs = ((InternalEObject)constructor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Mapperv3Package.ASSOCIATION__CONSTRUCTOR, null, msgs);
			if (newConstructor != null)
				msgs = ((InternalEObject)newConstructor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Mapperv3Package.ASSOCIATION__CONSTRUCTOR, null, msgs);
			msgs = basicSetConstructor(newConstructor, msgs);
			if (msgs != null) msgs.dispatch();
		}
		else if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__CONSTRUCTOR, newConstructor, newConstructor));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Id> getIdx() {
		if (idx == null) {
			idx = new EObjectContainmentEList<Id>(Id.class, this, Mapperv3Package.ASSOCIATION__IDX);
		}
		return idx;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Result> getResult() {
		if (result == null) {
			result = new EObjectContainmentEList<Result>(Result.class, this, Mapperv3Package.ASSOCIATION__RESULT);
		}
		return result;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Association> getAssociation() {
		if (association == null) {
			association = new EObjectContainmentEList<Association>(Association.class, this, Mapperv3Package.ASSOCIATION__ASSOCIATION);
		}
		return association;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Collection> getCollection() {
		if (collection == null) {
			collection = new EObjectContainmentEList<Collection>(Collection.class, this, Mapperv3Package.ASSOCIATION__COLLECTION);
		}
		return collection;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Discriminator getDiscriminator() {
		return discriminator;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public NotificationChain basicSetDiscriminator(Discriminator newDiscriminator, NotificationChain msgs) {
		Discriminator oldDiscriminator = discriminator;
		discriminator = newDiscriminator;
		if (eNotificationRequired()) {
			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__DISCRIMINATOR, oldDiscriminator, newDiscriminator);
			if (msgs == null) msgs = notification; else msgs.add(notification);
		}
		return msgs;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setDiscriminator(Discriminator newDiscriminator) {
		if (newDiscriminator != discriminator) {
			NotificationChain msgs = null;
			if (discriminator != null)
				msgs = ((InternalEObject)discriminator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Mapperv3Package.ASSOCIATION__DISCRIMINATOR, null, msgs);
			if (newDiscriminator != null)
				msgs = ((InternalEObject)newDiscriminator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Mapperv3Package.ASSOCIATION__DISCRIMINATOR, null, msgs);
			msgs = basicSetDiscriminator(newDiscriminator, msgs);
			if (msgs != null) msgs.dispatch();
		}
		else if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__DISCRIMINATOR, newDiscriminator, newDiscriminator));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getColumn() {
		return column;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setColumn(String newColumn) {
		String oldColumn = column;
		column = newColumn;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__COLUMN, oldColumn, column));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getColumnPrefix() {
		return columnPrefix;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setColumnPrefix(String newColumnPrefix) {
		String oldColumnPrefix = columnPrefix;
		columnPrefix = newColumnPrefix;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__COLUMN_PREFIX, oldColumnPrefix, columnPrefix));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getJavaType() {
		return javaType;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setJavaType(String newJavaType) {
		String oldJavaType = javaType;
		javaType = newJavaType;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__JAVA_TYPE, oldJavaType, javaType));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getJdbcType() {
		return jdbcType;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setJdbcType(String newJdbcType) {
		String oldJdbcType = jdbcType;
		jdbcType = newJdbcType;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__JDBC_TYPE, oldJdbcType, jdbcType));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getNotNullColumn() {
		return notNullColumn;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setNotNullColumn(String newNotNullColumn) {
		String oldNotNullColumn = notNullColumn;
		notNullColumn = newNotNullColumn;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__NOT_NULL_COLUMN, oldNotNullColumn, notNullColumn));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getProperty() {
		return property;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setProperty(String newProperty) {
		String oldProperty = property;
		property = newProperty;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__PROPERTY, oldProperty, property));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ResultMap getResultMap() {
		return resultMap;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setResultMap(ResultMap newResultMap) {
		ResultMap oldResultMap = resultMap;
		resultMap = newResultMap;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__RESULT_MAP, oldResultMap, resultMap));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Select getSelect() {
		return select;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSelect(Select newSelect) {
		Select oldSelect = select;
		select = newSelect;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__SELECT, oldSelect, select));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getTypeHandler() {
		return typeHandler;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setTypeHandler(String newTypeHandler) {
		String oldTypeHandler = typeHandler;
		typeHandler = newTypeHandler;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, Mapperv3Package.ASSOCIATION__TYPE_HANDLER, oldTypeHandler, typeHandler));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
		switch (featureID) {
			case Mapperv3Package.ASSOCIATION__CONSTRUCTOR:
				return basicSetConstructor(null, msgs);
			case Mapperv3Package.ASSOCIATION__IDX:
				return ((InternalEList<?>)getIdx()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.ASSOCIATION__RESULT:
				return ((InternalEList<?>)getResult()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.ASSOCIATION__ASSOCIATION:
				return ((InternalEList<?>)getAssociation()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.ASSOCIATION__COLLECTION:
				return ((InternalEList<?>)getCollection()).basicRemove(otherEnd, msgs);
			case Mapperv3Package.ASSOCIATION__DISCRIMINATOR:
				return basicSetDiscriminator(null, msgs);
		}
		return super.eInverseRemove(otherEnd, featureID, msgs);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case Mapperv3Package.ASSOCIATION__CONSTRUCTOR:
				return getConstructor();
			case Mapperv3Package.ASSOCIATION__IDX:
				return getIdx();
			case Mapperv3Package.ASSOCIATION__RESULT:
				return getResult();
			case Mapperv3Package.ASSOCIATION__ASSOCIATION:
				return getAssociation();
			case Mapperv3Package.ASSOCIATION__COLLECTION:
				return getCollection();
			case Mapperv3Package.ASSOCIATION__DISCRIMINATOR:
				return getDiscriminator();
			case Mapperv3Package.ASSOCIATION__COLUMN:
				return getColumn();
			case Mapperv3Package.ASSOCIATION__COLUMN_PREFIX:
				return getColumnPrefix();
			case Mapperv3Package.ASSOCIATION__JAVA_TYPE:
				return getJavaType();
			case Mapperv3Package.ASSOCIATION__JDBC_TYPE:
				return getJdbcType();
			case Mapperv3Package.ASSOCIATION__NOT_NULL_COLUMN:
				return getNotNullColumn();
			case Mapperv3Package.ASSOCIATION__PROPERTY:
				return getProperty();
			case Mapperv3Package.ASSOCIATION__RESULT_MAP:
				return getResultMap();
			case Mapperv3Package.ASSOCIATION__SELECT:
				return getSelect();
			case Mapperv3Package.ASSOCIATION__TYPE_HANDLER:
				return getTypeHandler();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case Mapperv3Package.ASSOCIATION__CONSTRUCTOR:
				setConstructor((Constructor)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__IDX:
				getIdx().clear();
				getIdx().addAll((java.util.Collection<? extends Id>)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__RESULT:
				getResult().clear();
				getResult().addAll((java.util.Collection<? extends Result>)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__ASSOCIATION:
				getAssociation().clear();
				getAssociation().addAll((java.util.Collection<? extends Association>)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__COLLECTION:
				getCollection().clear();
				getCollection().addAll((java.util.Collection<? extends Collection>)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__DISCRIMINATOR:
				setDiscriminator((Discriminator)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__COLUMN:
				setColumn((String)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__COLUMN_PREFIX:
				setColumnPrefix((String)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__JAVA_TYPE:
				setJavaType((String)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__JDBC_TYPE:
				setJdbcType((String)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__NOT_NULL_COLUMN:
				setNotNullColumn((String)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__PROPERTY:
				setProperty((String)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__RESULT_MAP:
				setResultMap((ResultMap)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__SELECT:
				setSelect((Select)newValue);
				return;
			case Mapperv3Package.ASSOCIATION__TYPE_HANDLER:
				setTypeHandler((String)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case Mapperv3Package.ASSOCIATION__CONSTRUCTOR:
				setConstructor((Constructor)null);
				return;
			case Mapperv3Package.ASSOCIATION__IDX:
				getIdx().clear();
				return;
			case Mapperv3Package.ASSOCIATION__RESULT:
				getResult().clear();
				return;
			case Mapperv3Package.ASSOCIATION__ASSOCIATION:
				getAssociation().clear();
				return;
			case Mapperv3Package.ASSOCIATION__COLLECTION:
				getCollection().clear();
				return;
			case Mapperv3Package.ASSOCIATION__DISCRIMINATOR:
				setDiscriminator((Discriminator)null);
				return;
			case Mapperv3Package.ASSOCIATION__COLUMN:
				setColumn(COLUMN_EDEFAULT);
				return;
			case Mapperv3Package.ASSOCIATION__COLUMN_PREFIX:
				setColumnPrefix(COLUMN_PREFIX_EDEFAULT);
				return;
			case Mapperv3Package.ASSOCIATION__JAVA_TYPE:
				setJavaType(JAVA_TYPE_EDEFAULT);
				return;
			case Mapperv3Package.ASSOCIATION__JDBC_TYPE:
				setJdbcType(JDBC_TYPE_EDEFAULT);
				return;
			case Mapperv3Package.ASSOCIATION__NOT_NULL_COLUMN:
				setNotNullColumn(NOT_NULL_COLUMN_EDEFAULT);
				return;
			case Mapperv3Package.ASSOCIATION__PROPERTY:
				setProperty(PROPERTY_EDEFAULT);
				return;
			case Mapperv3Package.ASSOCIATION__RESULT_MAP:
				setResultMap((ResultMap)null);
				return;
			case Mapperv3Package.ASSOCIATION__SELECT:
				setSelect((Select)null);
				return;
			case Mapperv3Package.ASSOCIATION__TYPE_HANDLER:
				setTypeHandler(TYPE_HANDLER_EDEFAULT);
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case Mapperv3Package.ASSOCIATION__CONSTRUCTOR:
				return constructor != null;
			case Mapperv3Package.ASSOCIATION__IDX:
				return idx != null && !idx.isEmpty();
			case Mapperv3Package.ASSOCIATION__RESULT:
				return result != null && !result.isEmpty();
			case Mapperv3Package.ASSOCIATION__ASSOCIATION:
				return association != null && !association.isEmpty();
			case Mapperv3Package.ASSOCIATION__COLLECTION:
				return collection != null && !collection.isEmpty();
			case Mapperv3Package.ASSOCIATION__DISCRIMINATOR:
				return discriminator != null;
			case Mapperv3Package.ASSOCIATION__COLUMN:
				return COLUMN_EDEFAULT == null ? column != null : !COLUMN_EDEFAULT.equals(column);
			case Mapperv3Package.ASSOCIATION__COLUMN_PREFIX:
				return COLUMN_PREFIX_EDEFAULT == null ? columnPrefix != null : !COLUMN_PREFIX_EDEFAULT.equals(columnPrefix);
			case Mapperv3Package.ASSOCIATION__JAVA_TYPE:
				return JAVA_TYPE_EDEFAULT == null ? javaType != null : !JAVA_TYPE_EDEFAULT.equals(javaType);
			case Mapperv3Package.ASSOCIATION__JDBC_TYPE:
				return JDBC_TYPE_EDEFAULT == null ? jdbcType != null : !JDBC_TYPE_EDEFAULT.equals(jdbcType);
			case Mapperv3Package.ASSOCIATION__NOT_NULL_COLUMN:
				return NOT_NULL_COLUMN_EDEFAULT == null ? notNullColumn != null : !NOT_NULL_COLUMN_EDEFAULT.equals(notNullColumn);
			case Mapperv3Package.ASSOCIATION__PROPERTY:
				return PROPERTY_EDEFAULT == null ? property != null : !PROPERTY_EDEFAULT.equals(property);
			case Mapperv3Package.ASSOCIATION__RESULT_MAP:
				return resultMap != null;
			case Mapperv3Package.ASSOCIATION__SELECT:
				return select != null;
			case Mapperv3Package.ASSOCIATION__TYPE_HANDLER:
				return TYPE_HANDLER_EDEFAULT == null ? typeHandler != null : !TYPE_HANDLER_EDEFAULT.equals(typeHandler);
		}
		return super.eIsSet(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy()) return super.toString();

		StringBuffer result = new StringBuffer(super.toString());
		result.append(" (column: ");
		result.append(column);
		result.append(", columnPrefix: ");
		result.append(columnPrefix);
		result.append(", javaType: ");
		result.append(javaType);
		result.append(", jdbcType: ");
		result.append(jdbcType);
		result.append(", notNullColumn: ");
		result.append(notNullColumn);
		result.append(", property: ");
		result.append(property);
		result.append(", typeHandler: ");
		result.append(typeHandler);
		result.append(')');
		return result.toString();
	}

} //AssociationImpl
